package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Museum;
import com.sky.entity.Reservation;
import com.sky.result.PageResult;

import java.time.LocalDateTime;
import java.util.List;

public interface MuseumService {
    List<Museum> MuseumList();

    PageResult pageQuery(MuseumPageQueryDTO museumPageQueryDTO);
    //获取用户预约数据
    List<Reservation> getReservation(String phone);

    Museum getMuseumByName(String museumName);
    //插入预约数据
    void insertReservation(InsertReservationDTO insertReservationDTO);

    void deleteReservation(ReservationDTO reservationDTO);


    Reservation selectReservation(LocalDateTime dateTime,String phone);

    void startOrStop(Long status, Long id);

    Museum getMuseumById(Long id);


    void addMuseum(AddMuseumDTO addMuseumDTO);

    void updateMuseum(UpdateMuseumDTO updateMuseumDTO);

    Museum selectById(Long id);

    void deleteMuseum(Long id);
}
